<script setup>
import { useElementPlusTheme } from "use-element-plus-theme"
import { useSettingStore } from "@/store/setting"
import { useDark } from "@vueuse/core"

// 设置暗黑模式
useDark()
const settingStore = useSettingStore()
// 设置全局主题色
useElementPlusTheme(settingStore.theme)
// 设置全局灰色模式
settingStore.initIsGray()
</script>

<template>
  <RouterView />
</template>

<style scoped></style>
